.portrait-page {
  padding: 32px 24px;
  background: #fff;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.portrait-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.portrait-title {
  font-size: 36px;
  font-weight: bold;
  color: #222;
  margin-bottom: 0;
  margin-left: -10px;
}
.portrait-subtitle {
  color: #8c9bab;
  font-size: 18px;
  margin-bottom: 32px;
}
.portrait-navs {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
  margin-left: -490px;
  margin-top: -20px;
}
.portrait-nav {
  padding: 8px 28px;
  border-radius: 24px;
  background: #f6fafd;
  color: #8c9bab;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.portrait-nav.active {
  background: #e6f7fa;
  color: #3bb3c2;
}
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 32px 24px;
}
.portrait-card {
  position: relative;
  height: 220px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-end;
}

/* 图片容器样式 */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.portrait-card-image {
  width: 100%;
  height: 100%;
}

/* 加载状态样式 */
.image-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  z-index: 1;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #3bb3c2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 裂图样式 */
.broken-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.broken-image-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.broken-image-icon svg {
  width: 100%;
  height: 100%;
}

.broken-image-text {
  font-size: 12px;
  color: #6c757d;
  opacity: 0.8;
}

.portrait-card-mask {
  width: 100%;
  padding: 0 0 16px 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.05) 100%, rgba(0,0,0,0) 100%);
  position: absolute;
  left: 0;
  bottom: 0;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-radius: 0 0 16px 16px;
  font-size: 20px;
  z-index: 2;
}
.portrait-card-title {
  margin-left: 16px;
  font-weight: 500;
  font-size: 20px;
}
.portrait-card-count {
  margin-right: 16px;
  font-size: 18px;
  opacity: 0.9;
}
